<template>
  <div>
    <banner></banner>
    <div class="questionsContent">
      <header>当前第5题/共8题</header>
      <p>5.你希望通我们的学习获得那些方面的改变？（必填）[填空题]</p>
      <textarea
        auto-focus
        rows="10"
        placeholder="请提出您宝贵的意见"
        placeholder-style="color:#B3B6B7; font-size:14px"
        @input="getRadioValue"
      ></textarea>
      <button @click="PlusIndex" type="primary">下一题</button>
    </div>
  </div>
</template>

<script>
import banner from "@/components/questionBanner.vue";
import Vue from "vue"
export default {
  data() {
    return {
      currentIndex: 0,
      haschange: -1
    };
  },
  components: {
    banner
  },
  methods: {
    PlusIndex() {
      // if (this.haschange == -1) {
      //   wx.showToast({
      //     title: "不能为空",
      //     duration: 2000,
      //     icon: "none"
      //   });
      // } else
      wx.navigateTo({ url: "../questionSix/main" });
    },
    getRadioValue(e) {
      Vue.prototype.opinion = e.mp.detail.value;
      console.log(this.opinion);
      
    }
  },
  created() {},
  onLoad() {}
};
</script>

<style scoped>
</style>
